/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2020-10-30 15:29:40
 * @LastEditors: sueRimn
 * @LastEditTime: 2020-11-16 10:10:25
 */
// const base = require('../../../env/index')
const URL = require('../router/trembleSchool')
import request from '@/utils/request'
import { addK_Token, checkHasID } from '../utils/index'

export function getSign(data) {
    return request({
        url: '/admin_question_url' + checkHasID(URL.GET_SIGN, data),
        method: 'POST',
        headers: {},
        data: addK_Token(data)
    })
}
export function addInformation(data) {
    return request({
        url: '/admin_question_url' + checkHasID(URL.ADD_INFORMATION, data),
        method: 'POST',
        headers: {},
        data: addK_Token(data)
    })
}
export function getInformation(data) {
    return request({
        url: '/admin_question_url' + checkHasID(URL.GET_INFORMATION, data),
        method: 'POST',
        headers: {},
        data: addK_Token(data)
    })
}
export function editInformation(data) {
    return request({
        url: '/admin_question_url' + checkHasID(URL.EDIT_INFORMATION, data),
        method: 'POST',
        headers: {},
        data: addK_Token(data)
    })
}
export function deleteInformation(data) {
    return request({
        url: '/admin_question_url' + checkHasID(URL.DELETE_INFORMATION, data),
        method: 'POST',
        headers: {},
        data: addK_Token(data)
    })
}
